home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Arsenal
/
OS2 Arsenal v1.0 (Disc 1)(Arsenal Computer).ISO
/
os2_utl1
/
chkey.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-01-03
|
424b
|
19 lines
/* CHKEY */
/*----------------------------------------------------------
RESULT = CHKEY(timeout_secs)
IF RESULT = 0 THEN SIGNAL TIMEOUT
ELSE INPUT = LINEIN()
-----------------------------------------------------------*/
ARG sec
IF sec = '' THEN sec = 10
START_TIME = time('e')
DO UNTIL LINES() = 1 | TIME('E') > sec
END
IF LINES() = 1 THEN EXIT 1
ELSE EXIT 0